﻿using Framework.EncryptionDecryptionService.Models;
using Microsoft.AspNetCore.Builder;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Framework.EncryptionDecryptionService.Middleware
{
    /// <summary>
    /// 加密中间件扩展方法
    /// </summary>
    public static class EncryptionMiddlewareExtensions
    {
        /// <summary>
        /// 注册加解密中间件
        /// </summary>
        public static IApplicationBuilder UseEncryptionDecryption(this IApplicationBuilder builder)
        {
            return builder.UseMiddleware<EncryptionDecryptionMiddleware>();
        }
    }
}
